package com.example.tool.task;

import org.jasypt.util.text.BasicTextEncryptor;


/**
 *
 */

/**
 * @ClassName Passworrd
 * @Author 13403
 * @Date 2022/5/3016:26
 * @Version 1.0
 **/
public class Passworrd {
    public static void main(String[] args) {
        //
        String salt = "13242861723"; // 盐值
        String password = "zijatXhVKGsum1XJPq0czym4bR7usdluzb9mJRjwu0hHVCLAMbk6AcSJ59mruAR34nQhiP9rdiqZn5TNUzR6VRCSSuvt4QpjqIQtmOOZC82r8YW7b8GLG9hhtfkj/UdDwcTAZl6b+lqing0Es1CboGf4qd39QeoZhomZ8GOlzdXdAcD2rJUzDCENRBuoOBUEkhGZ6hLfoKlaFXqoXcyRV880oVuvJQRynla+14rSy3gjEzraqK8Z/oSKWB5bhWIu5CqyY29SkvbGBIcNlttP/iPcdsdBguM3WYaNECsRkWvgNqalcNvEh2voqGOaRHJ1a+ngr1+hQsLfnTwUNo05Zg==";
        BasicTextEncryptor encryptor = new BasicTextEncryptor();
        encryptor.setPassword(salt);
//        // 加密
//        String encryptedMessage = encryptor.encrypt(password);
//        System.out.println("密文 -->" + encryptedMessage);
        // 解密
        String decryptedMessage = encryptor.decrypt(password);
        System.out.println("明文 -->" + decryptedMessage);
    }
}
